<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

//后台路由
Route::group('admin',function (){
    //登录
   Route::rule('/','admin/index/login','get|post');
   //注册
   Route::rule('register','admin/index/register','get|post');
   //忘记密码
   Route::rule('forget','admin/index/forget','get|post');
   //密码重置
   Route::rule('reset','admin/index/reset','post');
   //后台首页
    Route::rule('index','admin/home/index','get|post');
    //退出登录
    Route::rule('loginout','admin/home/loginout','post');


    //界面主题列表
    Route::rule('banner','admin/banner/all','get|post');
    //界面主题添加
    Route::rule('bannerindex','admin/banner/index','get|post');
    //界面主题编辑
    Route::rule('banneredit/[:id]','admin/banner/edit','get|post');
    //界面主题删除
    Route::rule('bannerdel','admin/banner/del','post');

    //界面商品图片列表
    Route::rule('detailall','admin/detail/all','get|post');
    //界面商品图片添加
    Route::rule('detailadd','admin/detail/index','get|post');
    //界面商品图片编辑
    Route::rule('detailedit/[:id]','admin/detail/edit','get|post');
    //界面商品图片删除
    Route::rule('detaildel','admin/detail/del','post');

    //界面商品列表
    Route::rule('dishall','admin/dish/all','get|post');
    //界面商品添加
    Route::rule('dishindex','admin/dish/index','get|post');
    //界面商品编辑
    Route::rule('dishedit/[:id]','admin/dish/edit','get|post');
    //首页标题列表
    Route::rule('pageconti','admin/pageconti/all','get|post');
    //首页标题添加
    Route::rule('pageconadd','admin/pageconti/add','get|post');
    //标题编辑
    Route::rule('pageconedit/[:id]','admin/pageconti/edit','get|post');
    //食材功效列表
    Route::rule('consecondall','admin/consecond/all','get|post');
    //食材功效添加
    Route::rule('consecondindex','admin/consecond/index','get|post');
    //食材功效编辑
    Route::rule('consecondedit/[:id]','admin/consecond/edit','get|post');
    //原料保证列表
    Route::rule('promiseall','admin/promise/all','get|post');
    //原料保证添加
    Route::rule('promiseadd','admin/promise/add','get|post');
    //原料保证编辑
    Route::rule('promiseedit/[:id]','admin/promise/edit','get|post');
    //滚图列表
    Route::rule('pictureall','admin/picture/all','get|post');
    //滚图添加
    Route::rule('pictureadd','admin/picture/index','get|post');
    //滚图编辑
    Route::rule('pictureedit/[:id]','admin/picture/edit','get|post');
    //名言列表
    Route::rule('wisdomall','admin/wisdom/all','get|post');
    //名言添加
    Route::rule('wisdomadd','admin/wisdom/add','get|post');
    //名言编辑
    Route::rule('wisdomedit/[:id]','admin/wisdom/edit','get|post');
    //样品展示列表
    Route::rule('sampleall','admin/sample/all','get|post');
    //样品展示添加
    Route::rule('sampleindex','admin/sample/index','get|post');
    //样品展示编辑
    Route::rule('sampleedit/[:id]','admin/sample/edit','get|post');

    //资讯列表
    Route::rule('informall','admin/inform/all','get|post');
    //资讯添加
    Route::rule('informadd','admin/inform/add','get|post');
    //资讯编辑
    Route::rule('informedit/[:id]','admin/inform/edit','get|post');

    //案例列表
    Route::rule('activityall','admin/activity/all','get|post');
    //案例添加
    Route::rule('activityindex','admin/activity/index','get|post');
    //案例编辑
    Route::rule('activityedit/[:id]','admin/activity/edit','get|post');
    //案例删除
    Route::rule('activitydel','admin/activity/del','post');

    //门店介绍
    Route::rule('introduceall','admin/introduce/all','get|post');
    //门店介绍添加
    Route::rule('introduceadd','admin/introduce/add','get|post');
    //门店介绍编辑
    Route::rule('introduceedit/[:id]','admin/introduce/edit','get|post');
    //门店联系
    Route::rule('contactall','admin/contact/all','get|post');
    //门店联系添加
    Route::rule('contactadd','admin/contact/add','get|post');
    //门店联系编辑
    Route::rule('contactedit/[:id]','admin/contact/edit','get|post');

    //栏目列表
    Route::rule('catelist','admin/cate/list','get|post');
    //栏目添加
    Route::rule('cateadd','admin/cate/add','get|post');
    //栏目排序
    Route::rule('catesort','admin/cate/sort','post');
    //栏目编辑
    Route::rule('cateedit/[:id]','admin/cate/edit','get|post');
    //栏目删除
    Route::rule('catedel','admin/cate/del','post');
    //文章列表
    Route::rule('articlelist','admin/article/list','get|post');
    //文章添加
    Route::rule('articleadd','admin/article/add','get|post');
    //推荐操作
    Route::rule('articletop','admin/article/top','post');
    //文章编辑
    Route::rule('articleedit/[:id]','admin/article/edit','get|post');
    //文章删除
    Route::rule('articledel','admin/article/del','post');
    //会员列表
    Route::rule('memberall','admin/member/all','get|post');
    //会员添加
    Route::rule('memberadd','admin/member/add','get|post');
    //会员编辑
    Route::rule('memberedit/[:id]','admin/member/edit','get|post');
    //会员删除
    Route::rule('memberdel','admin/member/del','post');
    //管理员列表
    Route::rule('adminall','admin/admin/all','get');
    //管理员添加
    Route::rule('adminadd','admin/admin/add','get|post');
    //管理员状态操作
    Route::rule('adminstatus','admin/admin/status','post');
    //管理员编辑
    Route::rule('adminedit/[:id]','admin/admin/edit','get|post');
    //管理员删除
    Route::rule('admindel','admin/admin/del','post');
    //投稿列表
    Route::rule('contri','admin/contri/all','get');
    //评论删除
    Route::rule('commentdel','admin/contri/del','post');
    //评论列表
    Route::rule('comment','admin/comment/all','get');
    //评论删除
    Route::rule('commentdel','admin/comment/del','post');
    //系统设置
    Route::rule('set','admin/system/set','get|post');
});
